export const ROOT = document.documentElement || document.body;
//屏幕宽度
export let CLIENT_WIDTH = ROOT.clientWidth;
//屏幕高度
export let CLIENT_HEIGHT = ROOT.clientHeight;
export function reloadClient() {
    CLIENT_WIDTH = ROOT.clientWidth;
    CLIENT_HEIGHT = ROOT.clientHeight;
}
export function isDef(v) {
    return v !== undefined;
}
export function isFn(v) {
    return Object.prototype.toString.call(v) === "[object Function]";
}